// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file HeartbeatPacket.h
 * This header file contains the declaration of the described types in the IDL file.
 *
 * This file was generated by the tool fastddsgen.
 */

#ifndef _FAST_DDS_GENERATED_VIS_MSG_HEARTBEATPACKET_H_
#define _FAST_DDS_GENERATED_VIS_MSG_HEARTBEATPACKET_H_

#include <array>
#include <bitset>
#include <cstdint>
#include <map>
#include <string>
#include <vector>

#include <fastcdr/cdr/fixed_size_string.hpp>
#include <fastcdr/xcdr/external.hpp>
#include <fastcdr/xcdr/optional.hpp>

#include "Header.h"


#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define eProsima_user_DllExport
#endif  // _WIN32

#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(HEARTBEATPACKET_SOURCE)
#define HEARTBEATPACKET_DllAPI __declspec( dllexport )
#else
#define HEARTBEATPACKET_DllAPI __declspec( dllimport )
#endif // HEARTBEATPACKET_SOURCE
#else
#define HEARTBEATPACKET_DllAPI
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define HEARTBEATPACKET_DllAPI
#endif // _WIN32

namespace eprosima {
namespace fastcdr {
class Cdr;
class CdrSizeCalculator;
} // namespace fastcdr
} // namespace eprosima



namespace vis_msg {



/*!
 * @brief This class represents the structure HeartbeatPacket defined by the user in the IDL file.
 * @ingroup HeartbeatPacket
 */
class HeartbeatPacket : public Header
{
public:

    /*!
     * @brief Default constructor.
     */
    eProsima_user_DllExport HeartbeatPacket();

    /*!
     * @brief Default destructor.
     */
    eProsima_user_DllExport ~HeartbeatPacket();

    /*!
     * @brief Copy constructor.
     * @param x Reference to the object vis_msg::HeartbeatPacket that will be copied.
     */
    eProsima_user_DllExport HeartbeatPacket(
            const HeartbeatPacket& x);

    /*!
     * @brief Move constructor.
     * @param x Reference to the object vis_msg::HeartbeatPacket that will be copied.
     */
    eProsima_user_DllExport HeartbeatPacket(
            HeartbeatPacket&& x) noexcept;

    /*!
     * @brief Copy assignment.
     * @param x Reference to the object vis_msg::HeartbeatPacket that will be copied.
     */
    eProsima_user_DllExport HeartbeatPacket& operator =(
            const HeartbeatPacket& x);

    /*!
     * @brief Move assignment.
     * @param x Reference to the object vis_msg::HeartbeatPacket that will be copied.
     */
    eProsima_user_DllExport HeartbeatPacket& operator =(
            HeartbeatPacket&& x) noexcept;

    /*!
     * @brief Comparison operator.
     * @param x vis_msg::HeartbeatPacket object to compare.
     */
    eProsima_user_DllExport bool operator ==(
            const HeartbeatPacket& x) const;

    /*!
     * @brief Comparison operator.
     * @param x vis_msg::HeartbeatPacket object to compare.
     */
    eProsima_user_DllExport bool operator !=(
            const HeartbeatPacket& x) const;

    /*!
     * @brief This function sets a value in member identifier
     * @param _identifier New value for member identifier
     */
    eProsima_user_DllExport void identifier(
            uint32_t _identifier);

    /*!
     * @brief This function returns the value of member identifier
     * @return Value of member identifier
     */
    eProsima_user_DllExport uint32_t identifier() const;

    /*!
     * @brief This function returns a reference to member identifier
     * @return Reference to member identifier
     */
    eProsima_user_DllExport uint32_t& identifier();

private:

    uint32_t m_identifier{0};

};

} // namespace vis_msg

#endif // _FAST_DDS_GENERATED_VIS_MSG_HEARTBEATPACKET_H_



